import request from '@/utils/request';
// 获取闸口列表
export const getwatergateList = (query) =>
  request({
    url: `/base/watergate/list`,
    method: 'get',
    params: query
  })
// 添加闸口信息 /base/watergate/add
export const addwatergate = (data) =>
  request({
    url: `/base/watergate/add`,
    method: 'post',
    data
  })
// 编辑闸口信息/base/watergate/edit
export const editwatergate = (data) =>
  request({
    url: `/base/watergate/edit`,
    method: 'post',
    data
  })

// 删除/base/watergate/remove/{ids}
export const removewatergate = (ids) =>
  request({
    url: `/base/watergate/remove/${ids}`,
    method: 'get',
  })

// 获取/base/watergate/getinfo/id
export const getwatergateinfo = (id) =>
  request({
    url: `/base/watergate/getinfo/${id}`,
    method: 'get',
  })
